#pragma warning(disable:4996)
#pragma warning(disable:6031)

#include <stdio.h>
#include <stdlib.h>

typedef struct list
{
	int n;
	struct list* next;
}list;

list* buy(int n)
{
	list* newnode = (list*)malloc(sizeof(list));
	if (newnode == NULL)
	{
		exit(-1);
	}
	newnode->next = NULL;
	newnode->n = n;
	return newnode;
}

list* push(list* phead, int n)
{
	list* newnode = buy(n);
	if (phead == NULL)
	{
		return newnode;
	}
	list* p = phead;
	while (p->next != NULL)
	{
		p = p->next;
	}
	p->next = newnode;
	return phead;
}

void print(list* phead)
{
	list* p = phead;
	while (p != NULL)
	{
		printf("%d ", p->n);
		p = p->next;
	}
}

list* reverse(list* phead)
{
	list* p1 = NULL;
	list* p2 = phead;
	list* p3 = p2->next;
	while (p3 != NULL)
	{
		p2->next = p1;
		p1 = p2;
		p2 = p3;
		p3 = p3->next;
	}
	p2->next = p1;
	return p2;
}

int main()
{
	int n = 0;
	int num = 0;
	list* p = NULL;
	scanf("%d", &n);
	while (n--)
	{
		scanf("%d", &num);
		p = push(p, num);
	}
	p = reverse(p);
	print(p);
	return 0;
}